package com.hht.wbanlib;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.hht.wblib.WhiteBoardHelp;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.open_wb).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                WhiteBoardHelp.getInstance(MainActivity.this).openWhiteBoard();
            }
        });
        findViewById(R.id.open_an).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                WhiteBoardHelp.getInstance(MainActivity.this).openAnnotation();
            }
        });
        findViewById(R.id.send_wb).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                WhiteBoardHelp.getInstance(MainActivity.this).sendPicturesToWhiteBoard(null);
            }
        });
    }
}